package com.xiaoshuidi.cloud.module.report.dal.DO.report;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

@TableName(value = "report_owner_collect_in_advance", autoResultMap = true)
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Accessors(chain = true)
public class OwnerCollectInAdvanceDO {

    /**
     * 编号，数据库自增
     */
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    /**
     * 合同id
     */
    private Long contractId;

    /**
     * 合同编号
     */
    private String contractNo;
    /**
     *公寓id
     */
    private Long apartmentId;
    /**
     *房间id
     */
    private Long roomId;
    /**
     *小区
     */
    private String area;
    /**
     *房间名称
     */
    private String roomName;
    /**
     * 统计日期 截止到月
     */
    private String statisticsMonth;
    /**
     * 业主姓名
     */
    private String ownerName;
    /**
     * 业主手机号
     */
    private String ownerPhone;
    /**
     * 房源名称
     */
    private String houseResource;
    /**
     * 在租状态
     */
    private String rentStatus;
    /**
     * 期初余额
     */
    private BigDecimal openingBalance=BigDecimal.ZERO;
    /**
     * 本月新增
     */
    private BigDecimal curNewAdd=BigDecimal.ZERO;
    /**
     * 本月结转
     */
    private BigDecimal curCarryForward=BigDecimal.ZERO;
    /**
     * 实退金额
     */
    private BigDecimal actualRefundAmount=BigDecimal.ZERO;
    /**
     * 期末余额
     */
    private BigDecimal endingBalance=BigDecimal.ZERO;
    /**
     * 租户id
     */
    private Long tenantId;
    /**
     * 部门id
     */
    private Long deptId;
}
